﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Webserver.aspx.cs" Inherits="Manager_IPserver" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager runat="server" AutoSizePanelID="gridList" />
    <ext:Grid runat="server" ID="gridList" Title="域名反向解析管理" EnableCheckBoxSelect="true" DataKeyNames="Id"
        IsDatabasePaging="true" EnableRowNumberPaging="true" AutoScroll="true" AllowPaging="true"
        OnPageIndexChange="gridList_PageIndexChange">
        <Toolbars>
            <ext:Toolbar runat="server">
                <Items>
                    <ext:ToolbarText Text="IP：" runat="server">
                    </ext:ToolbarText>
                    <ext:TwinTriggerBox ID="ttWeb" Label="域名" OnTrigger1Click="ttboxKeywords_Trigger1Click"
                        OnTrigger2Click="ttboxKeywords_Trigger2Click" Trigger1Icon="Clear" EmptyText="搜索域名"
                        Trigger2Icon="Search" runat="server">
                    </ext:TwinTriggerBox>
                    <ext:ToolbarFill runat="server">
                    </ext:ToolbarFill>
                    <ext:Button runat="server" Text="添加" Icon="Add" OnClick="btnAdd_OnClick">
                    </ext:Button>
                    <ext:Button runat="server" Text="启用/禁用" Icon="ApplicationEdit" OnClick="ApplicationEdit_OnClick">
                    </ext:Button>
                    <ext:Button runat="server" Text="删除" Icon="ApplicationDelete" OnClick="ApplicationDelete_OnClick">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:BoundField runat="server" DataField="WebUrl" HeaderText="域名" Width="130" TextAlign="Center" />
            <ext:BoundField runat="server" DataField="LastTime" HeaderText="最后访问时间" Width="140" TextAlign="Center" />
            <ext:BoundField runat="server" DataField="spider" HeaderText="去*后的域名" Width="140" TextAlign="Center" />
            <ext:TemplateField runat="server" HeaderText="当前状态" Width="120" TextAlign="Center">
                <ItemTemplate>
                    <%#Convert.ToInt32(Eval("StateR")) == 1 ? "<font color='blue'>启用</font>" : "<font color='red'>禁用</font>"%>
                </ItemTemplate>
            </ext:TemplateField>
        </Columns>
        <PageItems>
            <ext:Button ID="btnRefresh" runat="server" Icon="arrowrefresh" OnClick="btnRefresh_Click">
            </ext:Button>
            <ext:ToolbarFill ID="ToolbarFill3" runat="server">
            </ext:ToolbarFill>
            <ext:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
            </ext:ToolbarSeparator>
            <ext:ToolbarText ID="ToolbarText2" runat="server" Text="每页记录数：">
            </ext:ToolbarText>
            <ext:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
                OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                <ext:ListItem Text="15" Value="15" />
                <ext:ListItem Text="20" Value="20" />
                <ext:ListItem Text="25" Value="25" Selected="true" />
            </ext:DropDownList>
        </PageItems>
    </ext:Grid>
    <ext:Window ID="WindowAdd" runat="server" Height="150px" IsModal="true" Hidden="true"
        Title="添加幻灯片" Width="280px">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:ToolbarFill ID="ToolbarFill2" runat="server">
                    </ext:ToolbarFill>
                    <ext:Button ID="butsava1" runat="server" Text="保  存" Icon="systemsave" OnClick="butsava1_Click">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Form ID="Form2" runat="server" BodyPadding="5px" LabelWidth="80" LabelAlign="Right"
                Title="Form" ShowHeader="false" ShowBorder="false">
                <Rows>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox ID="txtWeb" runat="server" Label="域名" Text="">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox ID="txtspider" runat="server" Label="去*后域名" Text="">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:RadioButtonList ID="radStateR" runat="server" Label="当前状态">
                            <ext:RadioItem Value="1" Text="启用" Selected="true" />
                            <ext:RadioItem Value="0" Text="禁用" />
                            </ext:RadioButtonList>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
    </ext:Window>
    </form>
</body>
</html>
